package com.atgm.mall.gmmailmember.service;

import com.atgm.common.vo.login.WeiboUser;
import com.atgm.common.vo.member.MemberInfoVo;
import com.atgm.mall.gmmailmember.exception.PhoneException;
import com.atgm.mall.gmmailmember.exception.UsernameException;
import com.atgm.mall.gmmailmember.vo.req.MemberLoginVo;
import com.atgm.mall.gmmailmember.vo.req.MemberRegistVo;
import com.atgm.mall.gmmailmember.vo.resp.MemberLoginRespVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atgm.common.utils.PageUtils;
import com.atgm.mall.gmmailmember.entity.MemberEntity;

import java.util.List;
import java.util.Map;

/**
 * 会员
 *
 * @author pdx
 * @email 945097967@qq.com
 * @date 2021-08-20 10:00:59
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String phone) throws PhoneException;

    void checkUserNameUnique(String userName) throws UsernameException;

    MemberLoginRespVo login(MemberLoginVo vo);

    String weiboLogin(WeiboUser weiboUser);

    List<MemberInfoVo> queryMemberInfo(List<Long> memberIds);
}

